package com.soft.project.bean;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;

import com.soft.project.util.Constant;
import com.soft.project.util.GameUtil;
public class Eagle {
	private int x;
	private int y;
	private boolean isAlive;
	private Image picture;
	private Rectangle rectangle;
	public Eagle(int x,int y){
		this.x=x;
		this.y=y;
		this.picture=GameUtil.getImage("picture/eagle.png");
		this.isAlive=true;
		rectangle=new Rectangle(x,y,Constant.TANK_WIDTH,Constant.TANK_HEIGHT);
		
	}
	public Rectangle getRectangle() {
		return rectangle;
	}
	public int getX() {
		return x;
	}
	public int getY() {
		return y;
	}
	public boolean isAlive() {
		return isAlive;
	}
	public void setAlive(boolean isAlive) {
		this.isAlive = isAlive;
	}
	public void draw(Graphics g){
		g.drawImage(picture,x,y,Constant.TANK_WIDTH, Constant.TANK_HEIGHT,null);
		
	}

}
